package communication.message;

/***
 * 
 * @author Bogusław Zaręba
 *
 */

public class GameMasterLogin {
	private String id, gameType;
	private int playersMin, playersMax;
	
	public GameMasterLogin(String id, String gameType, int playersMin, int playersMax) {                   
		this.id = id;
		this.gameType = gameType;
		this.playersMin = playersMin;
		this.playersMax = playersMax;
	}
	
	public String getId() {
		return id;
	}
	
	public String getGameType() {
		return gameType;
	}
	
	public int getPlayersMin() {
		return playersMin;
	}
	
	public int getPlayersMax() {
		return playersMax;
	}
	
	public String toString() {
		return XMLTagCreator.singleTag(
				"gameMasterLogin", "id", id, "gameType", gameType, 
				"playersMin", Integer.toString(playersMin), "playersMax", Integer.toString(playersMax)
			);
	}
}
